﻿using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Text;

namespace Assistant.Controllers
{
    public class PrintModel
    {
        /// <summary>
        /// 打印动作
        /// </summary>

        public class PrintAction
        {
            /// <summary>
            /// 服务key
            /// </summary>
            public string Service { get; set; }

            /// <summary>
            /// 上下文
            /// </summary>
            public PrintContext Context { get; set; }

            /// <summary>
            /// 打印数据
            /// </summary>
            public Dictionary<string, object> DataTables { get; set; }

            /// <summary>
            /// 名称
            /// </summary>
            public string Name { get; set; }


            /// <summary>
            /// 报表名称
            /// </summary>
            public string ReportName { get; set; }
        }

        /// <summary>
        /// 打印上下文
        /// </summary>
        public class PrintContext
        {
            public List<string> active_domain { get; set; }

            public int active_id { get; set; }

            public List<int> active_ids { get; set; }

            public string active_model { get; set; }

            public List<int> allowed_company_ids { get; set; }

            public string lang { get; set; }

            public string tz { get; set; }

            public int uid { get; set; }
        }

    }
}
